import { network } from '@/utils';
import { TableListParams, PartnersParams } from './data';

import { partner } from '../../../../../config/Apis';

export async function queryStatementsList(params: TableListParams) {
  params._content_type = 'json';
  return network.get(partner.statement_list, {
    params,
  });
}

export async function queryPartnersList(params: PartnersParams) {
  params._content_type = 'json';
  return network.get(partner.franchisee_list, {
    params,
  });
}

export async function operUpdateMoney(params: TableListParams) {
  return network.post(partner.statement_save, {
    params,
  });
}

export async function operConfirm(params: TableListParams) {
  return network.post(partner.statement_confirm, {
    params,
  });
}
